package com.order.mapper;


import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.common.entity.GoodsShop;
import com.common.entity.Order;
import com.common.entity.OrderShop;
import com.common.entity.Shopcar;
import com.common.entity.Shop;
import org.apache.ibatis.annotations.Param;

import java.util.List;
import java.util.Map;

/**
 * <p>
 *  Mapper 接口
 * </p>
 *
 * @author xdl
 * @since 2022-08-31
 */
public interface OrderMapper extends BaseMapper<Order> {

    IPage<Map> findAllOrder(Page<Map> page, @Param("ew") QueryWrapper<Map> objectQueryWrapper);

    int insertShop(OrderShop orderShop);
 /*   List<Map> lianCha(Map map);*/
    int updateKuCun(GoodsShop goodsShop);

    //修改支付宝支付状态
    int updateZhiFu(Order order);

    //修改购物车删除（逻辑删除）
    int updateShopCar(Shopcar shopcar);

    List<Map> selectShopOrder(Integer id);

    Integer updataShopGoods(@Param("shopId") Integer shopId, @Param("gid") Object gid, @Param("tb_quantity") Integer tb_quantity);

    List<Shop> getShop();
    /*   List<Map> lianCha(Map map);*/
}
